package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //表示该接口是一个mapper接口，将来由mybatis创建代理对象保存到spring容器中
@Repository  //仅仅用来解决单元测试类中UserMapper语法检查报错问题的，没有实际作用
public interface UserMapper {

    //@Select("select * from t_user")
    public List<User> findAll();

}
